from django.conf.urls import re_path

from . import views
urlpatterns =[
    # 根据设计好的接口文档，匹配相应的路径
    # 购物车查询和新增和修改和删除
    re_path(r'^carts/$', views.CartsView.as_view()),
    # 购物车全选状态
    re_path(r'^carts/selection/$',views.CartsSelectionView.as_view()),
    # 提供商品页面右上角购物车数据(获取商品页面简单购物车)
    re_path(r'^carts/simple/$',views.CartsSimpleView.as_view())
]